#include "MysqlManager.h"

MysqlManager::~MysqlManager()
{
    std::cout << "destruct MysqlManager......" << std::endl;
}

int MysqlManager::regUser(const std::string& name, const std::string& email, const std::string& pwd, const std::string& icon)
{
    return m_dao.registerUser(name, email, pwd, icon);
}

bool MysqlManager::checkEmail(const std::string& name, const std::string& email)
{
    return m_dao.checkEmail(name, email);
}

bool MysqlManager::updatePwd(const std::string& name, const std::string& pwd)
{
    return m_dao.updatePwd(name, pwd);
}

bool MysqlManager::checkPwd(const std::string& name, const std::string& pwd, UserInfo& userInfo)
{
    return m_dao.checkPwd(name, pwd, userInfo);
}
